const path = require('path');
module.exports = {
    entry: './src/index.js',
    module: {
        rules: [{
            test: /\.jpg$/,
            use: {
                loader: "file-loader",
                options: {
                    esModule: false //让loader识别AMD规范(默认ES6)
                }
            }
        }]
    },
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist')
    }
}
